# Contributor: Robert Boisvert <rdboisvert@gmail.com>
# Maintainer: Robert Boisvert <rdboisvert@gmail.com>
pkgname=sqliteodbc
pkgver=0.99991
pkgrel=0
pkgdesc="SQLite ODBC driver"
url="http://www.ch-werner.de/sqliteodbc"
arch="all"
license="TCL"
makedepends="libtool sqlite-dev unixodbc-dev"
source="http://www.ch-werner.de/sqliteodbc/sqliteodbc-$pkgver.tar.gz"

prepare() {
	default_prepare
	update_config_sub
}

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr
	make
}

package() {
	mkdir -p "$pkgdir/usr/lib"
	make DESTDIR="$pkgdir" install
	rm $pkgdir/usr/lib/*.la $pkgdir/usr/lib/*.a
}

sha512sums="
ba45b4646083e577e7c54995e0d929fbc2a3bc4ed1667e4422521b6c035f3775f7c5d0ae9985808b8680bc9c2b5b79606289fd047a8805c82ce34d5631239285  sqliteodbc-0.99991.tar.gz
"
